package vip.ifmm.lehouse.common.enums.status;

import vip.ifmm.lehouse.common.enums.Statable;

/**
 * @author: mackyhuang
 * <p>email: mackyhuang@163.com <p>
 * <p>date: 2019/6/16 </p>
 */
public enum  UserInfoStatus implements Statable {

    USER_INFO_GET(0, "用户信息查询成功"),
    UPDATE_SUCCESS(0, "用户信息更新成功"),
    NICKNAME_CHECK_SUCCESS(0, "该用户名可用"),
    NICKNAME_CHECK_FAILURE(-1000, "该用户名不可用"),
    UPDATE_FAILURE(-1001, "该用户名不可用"),
    USER_ID_EMPTY(-1002, "用户id不能为空"),
    HEAD_IMAGE_EMPTY(-10032, "用户头像链接为空");

    private String msg;

    private int code;

    UserInfoStatus(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
